<div class="row">
    
      <div class="col-xs-12">
        <?php
        //显示表单验证错误信息
        echo (validation_errors() != '') ? '<div class="alert alert-danger" role="alert">'.validation_errors('<li>', '</li>').'</div>' : '';

        // 设置form标签属性
        $attributes = array('role' => 'form');
        echo form_open('home/create', $attributes);
      ?>
          <div class="form-group">
          <input type="text" name="proname" value="<?php echo set_value('proname'); ?>" class="form-control" id="proname" placeholder="项目名称">
          </div>

          <div class="form-group">  
          <div class='input-group date' id='datetimepicker1'>  
              <input type='text' class="form-control" placeholder="选择日期" />  
              <span class="input-group-addon">  
                  <span class="glyphicon glyphicon-calendar"></span>  
              </span>  
          </div>  
          </div>
<script>$(function () {  
    $('#datetimepicker1').datetimepicker({  
        format: 'YYYY-MM-DD',  
        locale: moment.locale('zh-cn')  
    });  
    $('#datetimepicker2').datetimepicker({  
        format: 'YYYY-MM-DD hh:mm',  
        locale: moment.locale('zh-cn')  
    });  
});</script>
          

          <button type="submit" class="btn btn-success">保存</button>
        </form>
      </div>

</div>

  
